package com.burt.delegate;

/**
 * Description:委托测试类
 * User: Burt
 * Date: 2017-05-23
 * Time: 23:33
 */
public class DelegateTest {
    public static void main(String[] args){

        //有客人点了佛跳墙，王厨师去做吧
        Waiter waiter = new Waiter(new CookWang());
        waiter.doWork();

    }
}
